import request from '@/utils/request'
export const payOrder = (mode, delivery, shopId, couponId) => {
  return request.get('/checkout/order', {
    params: {
      mode,
      delivery,
      shopId,
      couponId
    }
  })
}
export const checkSubmit = (goodsId, goodsNum, goodsSkuId, delivery, couponId, isUsePoints, mode, payType, remark, cartIds) => {
  return request.post('/checkout/submit', {
    goodsId, goodsNum, goodsSkuId, delivery, couponId, isUsePoints, mode, payType, remark, cartIds
  })
}
